package cn.wolfcode.luowowo.serach.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.format.annotation.DateTimeFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

@Setter
@Getter
public class FlightTemplateQueryObject extends QueryObject {

    public String fromCityCode;

    public String toCityCode;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date takeoffTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date returnTime;

    public String takeoffPortName;
    public String landingPortName;
    public String airlineName;
    public String planeType;

}
